package com.mystudy.concurrent.designModel.futureModel;

/**
 * TODO:
 *
 * @author acy
 * @since 2019/05/29 17:15
 */
public class MyFutureTest {
	public static void main(String[] args) throws InterruptedException {
		MyFutureService futureService = new MyFutureService();
		futureService.submit(() -> {
			try {
				Thread.sleep(10000l);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
			return "finish";
		}, System.out::println);
		System.out.println("=======================");
	}
}
